﻿using Microsoft.EntityFrameworkCore;
using Model;

namespace DAL
{
    public class MyDbContext : DbContext
    {
        private readonly DbContextOptions options;

        public MyDbContext(DbContextOptions options) : base(options)
        {
            this.options = options;
        }
        //会员表
        public DbSet<Member> Members { get; set; }
        //会员等级
        public DbSet<MemberLevel> MemberLevels { get; set; }
    }
}
